const path = require("path") //引入路径


const swaggeroptions = {
  info: {
    version: '1.0.0',
    title: 'Albums store',
    license: {
      name: 'MIT',
    },
  },
  produces: [
          "application/json",
          "application/xml"
      ],
      schemes: ['http', 'https'],
  security: {
    BasicAuth: {
      type: 'http',
      scheme: 'basic',
    },
  },
  // Base directory which we use to locate your JSDOC files
  filesPattern: ['../**.js','../src/**/**.js','./src/*.js',],
  baseDir: __dirname,
  apis:[path.join(__dirname,'../src/*.js'),path.join(__dirname,'../app.js')],
};

// export default swaggeroptions;

// const specs = swaggerJSDoc(options);
module.exports = swaggeroptions;